package cn.edu.scau.cmi.liyunlin.mainClient;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import client.*;

public class ViewController {
	@FXML
	private Button interProgramming;
	@FXML
	private Button singleton;
	@FXML
	private Button simpleFactory;
	@FXML
	private Button factory;
	@FXML
	private Button abstractFactory;
	@FXML
	private Button adapter;
	@FXML
	private Button safeComposite;
	@FXML
	private Button consitentComposite;
	@FXML
	private Button hibernate;
	@FXML
	private Button spring;
	@FXML
	private Button hibernateSpringMix;

	
	public void exp1(ActionEvent event) {
		InterProgrammingJavaFxClient stage = new InterProgrammingJavaFxClient();
		stage.showWindow();
	}
	
	public void exp2(ActionEvent event) {
		SingletonClient stage = new SingletonClient();
		stage.showWindow();
	}
	
	public void exp3(ActionEvent event) {
		SimpleFactoryMethodClient stage = new SimpleFactoryMethodClient();
		stage.showWindow();
	}
	
	public void exp4(ActionEvent event) {
		FactoryClient stage = new FactoryClient();
		stage.showWindow();
	}
	
	public void exp5(ActionEvent event) {
		AbstractFactoryClient stage = new AbstractFactoryClient();
		stage.showWindow();
	}
	
	public void exp6(ActionEvent event) {
		AdapterClient stage = new AdapterClient();
		stage.showWindow();
	}
	
	public void exp7(ActionEvent event) {
		SafeCompositeJavaFXClient stage = new SafeCompositeJavaFXClient();
		stage.showWindow();
	}
	
	public void exp8(ActionEvent event) {
		ConsitentCompositeJavaFXClient stage = new ConsitentCompositeJavaFXClient();
		stage.showWindow();
	}
	
	public void exp9(ActionEvent event) {
		HibernateClient stage = new HibernateClient();
		stage.showWindow();
	}
	
	public void exp10(ActionEvent event) {
		SpringClient stage = new SpringClient();
		stage.showWindow();
	}
	
	public void exp11(ActionEvent event) {
		HibernateSpringMixClient stage = new HibernateSpringMixClient();
		stage.showWindow();
	}
}
